|
|
|
|
|
|
|
Figure 24.13
In the Add Field dialog box, you can
specify the properties of the fields for a table. |
|
|
|
|
|
|
|
|
To continue our example database, first enter a name for the table in the Table Name text box. Then follow these steps for each field you want to add: |
|
|
|
|
|
|
|
|
1. Click the Add Field button in the Table Structure dialog box. |
|
|
|
|
|
|
|
|
2. Select the field type from the Type drop-down list. |
|
|
|
|
|
|
|
|
3. Enter the size of the field (if necessary). |
|
|
|
|
|
|
|
|
4. Enter any optional parameters, such as validation rules. |
|
|
|
|
|
|
|
|
5. Click the OK button to add the field to the table. |
|
|
|
|
|
|
|
|
After you enter all the fields for your table, click the Close button in the Add Field dialog box to return to the Table Structure dialog box. |
|
|
|
|
|
|
|
|
If you want to remove a field from the table, select the field name in the dialog box's field list, and then click the Remove Field button. When you are satisfied with the fields in the table, click the Build the Table button to create the table. |
|
|
|
|
|
|
|
|
Making Changes to the Fields in Your Table |
|
|
|
|
|
|
|
|
After you create the fields in the table, you can set or change a number of the field properties from the Table Structure dialog box. To modify the properties, select the field name in the Field List. The properties of the field that can be modified appear in the dialog box as enabled text or check boxes. All other properties appear as disabled controls. |
|
|
|
|
| |
|
|
|
|
You also can edit the properties of a field from the Database window of the Visual Data Manager. Simply expand the database view to show field properties, and right-click the property to be edited. You then can select Edit from the pop-up menu to change the property. |
|
|
|
|
|
|
|
|
|
|
|
In Visual Basic, you cannot edit or delete any field that is part of an index expression or a relation. If you need to delete such a field, you must delete the index or relation containing the field and then make the changes to the field.  |
|
|
|
|
|
|
|